<legend class='hyc-legend'>
    <i class="fa fa-list"></i>&nbsp;
    <span>品牌列表</span>
</legend>
<div class="panel panel-default">
    <div class="panel-heading">品牌列表</div>
    <div class="panel-body">
        <div class="row">
            <div class="col-md-1 text-right top7">首字母</div>
            <div class="col-md-2">
                <div class="form-group">
                    <input type="text" class="form-control" ng-model="brand.brandPrefix">
                </div>
            </div>
            <div class="col-md-1 text-right top7">品牌名称</div>
            <div class="col-md-2">
                <div class="form-group">
                    <input type="text" class="form-control" ng-model="brand.brandName">
                </div>
            </div>
            <div class="col-md-1 text-right top7">国家</div>
            <div class="col-md-2">
                <div class="form-group">
                    <input type="text" class="form-control" ng-model="brand.brandNation">
                </div>
            </div>
            <div class="col-md-3">
                <div class="form-group text-right">
                    <div class="btn btn-default btn-sm btn-warning" ng-click="loadData('query')">查询</div>&nbsp;&nbsp;&nbsp;
                    <div class="btn btn-default btn-sm" ng-click="clearQuery()">重置</div>
                </div>
            </div>
        </div>
        <div class="hyc-overflow-y">
            <table class="table table-bordered table-hover">
                <tr>
                    <th class="text-center">选择</th>
                    <th class="text-center">首字母</th>
                    <th class="text-center">品牌名称</th>
                    <th class="text-center">国家</th>
                    <th class="text-center">LOGO</th>
                </tr>
                <tr ng-repeat="brand in brands track by $index">
                    <td class="text-center">
                        <input type="checkbox" class="checkbox hyc-inner-block" ng-model="brand.active" value="{{brand.id}}"/>
                    </td>
                    <td class="text-center">
                        {{brand.brandPrefix}}
                    </td>
                    <td class="text-center">
                        {{brand.brandName}}
                    </td>
                    <td class="text-center">
                        {{brand.brandNation}}
                    </td>
                    <td class="text-center">
                        <div ng-bind-html="brand.brandLogoHtml | trustHtml"></div>
                        <!--<img ng-src="{{brand.url || Context.path + '/image/truck-default-logo.png'}}" style="height: 130px; width: 170px;" ng-click="showBigImg(item.picKey)">-->
                    </td>
                </tr>
                <tr ng-if="brands.length <= 0">
                    <td colspan="14">
                        <div class="hyc-color text-center">
                            暂无品牌数据
                        </div>
                    </td>
                </tr>
            </table>
        </div>
        <div ng-include="pageIncludeUrl" ng-if="brands.length > 0"></div>
    </div>
    <div class="panel-footer text-right padding5">
        <div class="btn btn-warning btn-sm" ng-click="showModel('edit')">修改</div>
        <div class="btn btn-warning btn-sm" ng-click="showModel('add')">新增</div>
    </div>
</div>